package generator;


public class GeneratorDasaStarter {
	
	
	/**
	
	// FOOOSH Properties
	private static String SOURCE_FOLDER = "C:/_data/workspaces/cit_search/persistence/src/";
	private static String PACKAGE = "database/object/";
	private static String DRIVER_CLASS = "com.mysql.jdbc.Driver";
	private static String CONNECTION_STRING = "jdbc:mysql://localhost/";
	private static String SCHEMA = "fooosh";
	private static String USER = "root";
	private static String PASSWORD = null;
	**/
	
	/**
	// CIT Properties
	private static String SOURCE_FOLDER = "C:/_data/workspaces/cit_search/persistence/src/";
	private static String PACKAGE = "database/object/";
	private static String DRIVER_CLASS = "oracle.jdbc.driver.OracleDriver";
	private static String CONNECTION_STRING = "jdbc:oracle:thin:@q4de3qsy266.t2.sl-si.com:1522:cite01";
	private static String SCHEMA = "cit";
	private static String USER = "cit";
	private static String PASSWORD = "cat";
	**/
	
	/**
	// AnalyseDB Properties
	private static String SOURCE_FOLDER = "C:/_data/workspaces/cit_search/generator/src/";
	private static String PACKAGE = "analyse.database.object";
	private static String PACKAGE_FOLDER = PACKAGE.replace(".", "/") + "/";
	private static String DRIVER_CLASS = "com.mysql.jdbc.Driver";
	private static String CONNECTION_STRING = "jdbc:mysql://localhost/";
	private static String SCHEMA = "db_analyse";
	private static String USER = "root";
	private static String PASSWORD = null;
	**/

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		PersistenceContext context = new PersistenceContext();
		context.setSourceFolder("C:/Documents and Settings/adimitro/myHomeWork/ParsWebsite/src");
		context.setPackageName("com.orthoidoxDb");
		context.setDriverClass("oracle.jdbc.driver.OracleDriver");
		context.setConnectionUrl("jdbc:oracle:thin:@w4de3tsy0000230.p1.sl-si.com:1521:XE");
		context.setSchema("ACO");
		context.setUser("aco");
		context.setPassword("Jennifer1");
		context.setDbAlias("aco");
		
		context.addTableToWhitelist("Tag");
		context.addTableToWhitelist("Monat");
		context.addTableToWhitelist("Jahr");
		context.addTableToWhitelist("Kurzbeschreibung");
		context.addTableToWhitelist("Langbeschreibung");
		context.addTableToWhitelist("Ref_Datensatz");
		context.addTableToWhitelist("Ref_Datum");
		
		Persistence generator = new Persistence(context);
		generator.start();

	}

}
